/**
 * Created by zhaojm on 15/3/17.
 */
game.TouchLayer = game.BaseTouchLayer.extend({

    //guideTask : null,
    ctor:function(){
        this._super();
        //guideTask = -1;

        this.setMaxTouchCount(1);   // 最大支持双击

        //this.setTouchEnabled(false);

        that = this;

    },



    onSingleClick : function(pos){
        //cc.log('onSingleClick');
        //if(this.guideTask == -1){
        //
        //}else if(this.guideTask == 0){
        //    this.parent.onGuideTask0();
        //}else if(this.guideTask == 1){
        //    this.parent.onGuideTask1();
        //}else if(this.guideTask == 2){
        //    this.parent.onGuideTask2();
        //    return;
        //}
        this.parent.hero.jump();

    },
    //onDoubleClick : function(pos){
    //    cc.log('onDoubleClick');
    //},
    //onThreeClick : function(pos){
    //    cc.log('onThreeClick');
    //},
    //onFourthClick : function(pos){
    //    cc.log('onFourthClick');
    //},
    //onLongPressed : function(pos){
    //    cc.log('onLongPressed');
    //},
    //onMove : function(prePoint, curPoint){
    //    cc.log('onMove');
    //},
    //onSwip : function(startPos, endPos, dir){
    //    cc.log('onSwip');
    //},


});